package com.example.tys.oomdata.sqLiteData;

/**
 * @author tys
 * @date 2018/3/10
 */

public class DaoFactory {

    public <T> DaoSqlProxy<T, DaoSqlImpl<T>> getDaoSqLite(Class<?> entryClass) {
        DaoSqlProxy<T, DaoSqlImpl<T>> daoProxy = new DaoSqlProxy<>();
        String tabName = DbHelper.getTabName(entryClass);
        daoProxy.dao = new DaoSqlImpl<>(tabName);
        return daoProxy;
    }

//    <T> DaoSqlProxy<T, DaoSqlImpl<T>> getDaoGreenDao(Class<?> entryClass) {
//        DaoSqlProxy<T, DaoSqlImpl<T>> daoProxy = new DaoSqlProxy<>();
//        daoProxy.dao = new DaoSqlImpl<T>();
//        daoProxy.tabName = DbHelper.getTabName(entryClass);
//        return daoProxy;
//    }

}
